//
//  CommentCell.h
//  MyBlog
//
//  Created by NCS on 16/12/20.
//  Copyright © 2016年 YSL. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DetailCellModel.h"

@interface CommentCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *avatar;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *time;
@property (weak, nonatomic) IBOutlet UILabel *device;
@property (weak, nonatomic) IBOutlet UILabel *content;
@property (weak, nonatomic) IBOutlet UILabel *likes;

@property (strong, nonatomic) DetailCellModel *model;
@property CGFloat cellHeight;
//@property (weak, nonatomic) IBOutlet NSLayoutConstraint *contentHeightConstraint;

- (IBAction)like:(UIButton *)sender;
- (IBAction)comment:(UIButton *)sender;

- (void)setData:(DetailCellModel *)model;
- (void)getCellHeight;
+ (CGFloat)getCellHeightByWidth:(CGFloat)width Title:(NSString *)title font:(UIFont *)font;

@end
